package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WpsqMapper;
import com.ruoyi.system.domain.Wpsq;
import com.ruoyi.system.service.IWpsqService;

/**
 * 外聘申请Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-05
 */
@Service
public class WpsqServiceImpl implements IWpsqService 
{
    @Autowired
    private WpsqMapper wpsqMapper;

    /**
     * 查询外聘申请
     * 
     * @param id 外聘申请主键
     * @return 外聘申请
     */
    @Override
    public Wpsq selectWpsqById(Long id)
    {
        return wpsqMapper.selectWpsqById(id);
    }

    /**
     * 查询外聘申请列表
     * 
     * @param wpsq 外聘申请
     * @return 外聘申请
     */
    @Override
    public List<Wpsq> selectWpsqList(Wpsq wpsq)
    {
        return wpsqMapper.selectWpsqList(wpsq);
    }

    /**
     * 新增外聘申请
     * 
     * @param wpsq 外聘申请
     * @return 结果
     */
    @Override
    public int insertWpsq(Wpsq wpsq)
    {
        return wpsqMapper.insertWpsq(wpsq);
    }

    /**
     * 修改外聘申请
     * 
     * @param wpsq 外聘申请
     * @return 结果
     */
    @Override
    public int updateWpsq(Wpsq wpsq)
    {
        return wpsqMapper.updateWpsq(wpsq);
    }

    /**
     * 批量删除外聘申请
     * 
     * @param ids 需要删除的外聘申请主键
     * @return 结果
     */
    @Override
    public int deleteWpsqByIds(Long[] ids)
    {
        return wpsqMapper.deleteWpsqByIds(ids);
    }

    /**
     * 删除外聘申请信息
     * 
     * @param id 外聘申请主键
     * @return 结果
     */
    @Override
    public int deleteWpsqById(Long id)
    {
        return wpsqMapper.deleteWpsqById(id);
    }
}
